import { App, markRaw } from 'vue'
import { useViewStore } from '@v-model/shared--stores'
import * as modules from '@v-model/project--i-sys'
export default function install(app: App) {
  //缓存组件信息
  const ViewStore = useViewStore()
  let CACHE_MODULES: any = {}
  const _modules: any = modules
  for (const key in modules) {
    const file_key = _modules[key].__file.split('project/')[1]
    CACHE_MODULES[file_key] = markRaw(_modules[key])
  }
  //缓存引入的组件路径
  ViewStore.CACHE_MODULES(CACHE_MODULES)
}
